<div id="c_h">
	<?php
		$sBloks = '';
		$sAreas = '';
		$arLinks = array();
		$arLinks2 = array();
		$ids = array();
		foreach ($this->countryRegions as $region) {
			if (sizeof($arLinks) < 3) $arLinks[] = "<a class='regionmaplink' id='region".$region['ID']."_link' rel='".$region['ID']."' href='".HTTP_HOST."/".$this->country->alias."/".$region['alias']."'>".$region['Name']."</a>";
			else $arLinks2[] = "<a class='regionmaplink' id='region".$region['ID']."_link' rel='".$region['ID']."' href='".HTTP_HOST."/".$this->country->alias."/".$region['alias']."'>".$region['Name']."</a>"; 
		 	if (trim($region['headerImage']) == '') continue;
		 	$sBloks .= '<div class="region-area" id="region'.$region['ID'].'" style="background: url('.HTTP_HOST.$region['headerImage'].') '.$region['headerPositionX'].'px '.$region['headerPositionY'].'px no-repeat;"></div>';
		 	$sAreas .= '<area href="javascript:;" shape="poly" coords="'.$region['coords'].'" rel="'.$region['ID'].'" id="region'.$region['ID'].'_area" />';
		 	$ids[] = $region['ID'];
		}
	?>
	<div id="c_header" style="background: url('<?=HTTP_HOST.$this->country->headerImage?>')">
		<?=$sBloks?>
		<img class="countryHeaderCover" width="1000" height="200" usemap="#regions" src="<?=HTTP_HOST?>/images/aurora/country_template/empty.gif" />
	</div>
	<map name="regions" id="regions">
		<?=$sAreas?>
	</map>
	
	<div id="c_logo"><a href="<?=HTTP_HOST?>"><img src="<?=HTTP_HOST?>/images/aurora/logo2.png"/></a></div>
	<div id="c_down_d">
		<div id="c_download_d" style="visibility: hidden;">
			<img id="online_consult" alt="" src="<?=HTTP_HOST?>/images/aurora/online_consult.png">
		</div>
		<div id="c_sitemap_d">
			<a href="mailto:info@aurora-investment.ru"><img alt="" id="sendmail" src="<?=HTTP_HOST?>/images/aurora/send_mail.png"></a>
			<a href="<?=HTTP_HOST?>/sitemap"><img alt="" id="sitemap" src="<?=HTTP_HOST?>/images/aurora/sitemap.png"></a>
		</div>	
	</div>
	<div id="c_current_country">
		<a href="<?=HTTP_HOST?>/<?=$this->country->alias?>"><img src="<?=HTTP_HOST.$this->country->smallFlag?>" alt="<?=$this->country->Name?>" class="c_country_flag"/> <?=$this->country->Name?></a>
		
<!-- 		<div id="c_country_name"><?=$this->country->Name?></div> -->
	</div>
	<div id="c_srch">
		<div class="country-site-search">
				<?=$this->render('blocks/search-form.phtml')?>
		</div>		
	</div>
	<div id="c_country_regions">
	<?php
		echo implode(' | ', $arLinks);
	?>
	<?php if (sizeof($arLinks2) > 0) { ?>
		<div class="moreregionslink">
			<a href="javascript:;"><?=$this->translate('Больше регионов -&gt;')?></a>
		</div>
	<?php } ?>	
	</div>
</div>
<div id="regbodyholder">
	<div class="regbody">
		<div class="tri"><img src="<?=HTTP_HOST?>/images/popups/tri.png" alt="" /></div>
		<h5>
			<?=$this->country->Name?> | <?=$this->translate('Регионы')?>
		</h5>
		<div class="links">
			<?php
				echo implode(' | ', $arLinks2);
			?>
		</div>
	</div>
</div>
